<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <input type="button" value="动起来" @click="click1()">
        <input type="button" value="停" @click="click2()">
        <br>
        {{msg}}}
    </div>
</body>
</html>
<script src="node_modules/vue/dist/vue.js"></script>
<script>
    const a = new Vue({
        el:"#app",
        data:{
            msg:"我们是80期",
            id:null
        },
        methods:{
            click1(){
                this.id = setInterval(() =>{
                    let start = this.msg.substring(0,1);
                    let end = this.msg.substring(1);
                    this.msg = end+start;
                },400)
            },
            click2(){
                clearInterval(this.id)
            }
        }
    })
</script>